package com.cowain.monitor.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.cowain.monitor.entity.ErpItemInfoEntity;
import com.cowain.monitor.entity.PmsForecastPartNum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author sjunfeng
 */
@Mapper
public interface PmsForecastPartNumDao extends BaseMapper<PmsForecastPartNum> {
    /**
     * 查询料号表料号id
     * @return 料号id
     */
    List<String> findItemId();

    /**
     * 向pms库新增数据
     * @param infoEntity 料号数据
     * @return 成功与否
     */
    int insertItemInfo( ErpItemInfoEntity infoEntity);

    /**
     * 向pms库新增数据
     * @param infoEntitys 料号数据
     * @return 成功与否
     */
    int insertItemInfos(@Param("infoEntitys") List<ErpItemInfoEntity>  infoEntitys);

}
